Skip to content

fix(ad-hoc): (nAPM) Reset capture polling backoff when app returned to foreground - #393

Merged
vitalii-vanziak-cko merged 15 commits into
masterfrom
fix/ad-hoc/napm-capture-improvement
Aug 6, 2026
Merged

fix(ad-hoc): (nAPM) Reset capture polling backoff when app returned to foreground#393
vitalii-vanziak-cko merged 15 commits into
masterfrom
fix/ad-hoc/napm-capture-improvement

Conversation

@vitalii-vanziak-cko

Copy link
Copy Markdown
Collaborator

Native APM capture polling improvements:

  • Capture polling extracted from interactor and re-implemented in the separate class NativeAlternativePaymentCapturePoller, that also allows to reset polling backoff.
  • Interactor observes when app returns to foreground and resets polling backoff.
  • Fixed composable POCountdownTimerText that showed inaccurate countdown due to reliance on recompositions. Now it calculates the actual elapsed time.

Misc:

  • Using SystemClock.elapsedRealtime() instead of System.currentTimeMillis() for better accuracy in all implementations that count time intervals.
  • Related rename refactoring to improve code readability.

…or to sync the timer with actual polling instead of UI recomposition
@vitalii-vanziak-cko
vitalii-vanziak-cko merged commit 29df369 into master Aug 6, 2026
3 checks passed
@vitalii-vanziak-cko
vitalii-vanziak-cko deleted the fix/ad-hoc/napm-capture-improvement branch August 6, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants